<%@page import="com.situ.web.entity.User"%>
<%@page import="com.situ.web.entity.Student"%>
<%@page import="com.situ.web.entity.PageBean"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap-3.3.7-dist/css/bootstrap.css" />

<style 	type="text/css">
	.login{
		margin-left:800px;
	}
</style>
</head>
<body>
	<form action="${pageContext.request.contextPath}/student?method=search" method="post">
		名字：<input type="text" name="searchName" /> 
		<input type="submit" value="搜索" class="btn btn-success" />
	</form>
<%-- 	<a href="${pageContext.request.contextPath}/student?method=getInsertPage" class="btn btn-info">添加</a> --%>
	<a onclick="insert()" class="btn btn-info">添加</a>
	
	
	
	<%-- 	${list} --%>
	<table class="table  table-striped table-bordered table-hover table-condensed">
		<tr>
			<td>ID</td>
			<td>名字</td>
			<td>年龄</td>
			<td>性别</td>
			<td>班级</td>
		</tr>
		<c:forEach items="${list}" var="map">
			<tr>
				<td>${map['id']}</td>
				<td>${map['name']}</td>
				<td>${map['age']}</td>
				<td>${map['gender']}</td>
				<td>${map['banjiName']}</td>
			</tr>
		</c:forEach>
	</table>
	
	<script src="js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/layer/layer.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/mylayer.js" type="text/javascript" charset="utf-8"></script>
	<script src="lib/util.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>